package com.books.service.book;/*
 *@Auther Zhourui
 *@data 2021/9/29  21:08
 *@Email 1605576647@qq.com
 */



import com.books.model.entity.book.Books;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IBookService {
    Books getById(Integer id);

    List<Books> loadAll();

    //(pageNow-1)*pageSize,pageSize
    PageInfo<Books> index(String title, Integer categoryId, Integer pageNum, Integer pageSize);

    void updateBookStock(Integer bkId,Integer stock);
}
